/**
 * 业务代表
 * 
 * 被表示层调用
 * 持有查询服务，通过查询服务获取【业务层具体服务对象】，调用其方法
 */
public class BusinessDelegate {
    private BusinessLookUp businessLookUp = new BusinessLookUp();
    private String serviceType;

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    public void doTask(){
        businessLookUp.getBusinessService(serviceType).doProcessString();;
    }
}
